package com.eoner.baselibrary.bean.purchase;

import android.text.TextUtils;

/**
 * @auther hjian
 * @date 2020/9/23.
 */
public class PurchaseCartItemBean {

    private String cart_id;
    private String product_id;
    private String product_main_id;
    private String image;
    private boolean is_gift;
    private String title;
    private String attribute_text;
    private String price;
    private String stock;
    private String buy_qty;
    private boolean isEdit = true;
    private boolean isSelected = false;

    public boolean getIsSelected() {
        return isSelected;
    }

    public void setIsSelected(boolean isSelected) {
        this.isSelected = isSelected;
    }

    public boolean getIsEdit() {
        return isEdit;
    }

    public void setIsEdit(boolean isEdit) {
        this.isEdit = isEdit;
    }

    public String getCart_id() {
        return cart_id;
    }

    public void setCart_id(String cart_id) {
        this.cart_id = cart_id;
    }

    public String getProduct_id() {
        return product_id;
    }

    public void setProduct_id(String product_id) {
        this.product_id = product_id;
    }

    public String getProduct_main_id() {
        return product_main_id;
    }

    public void setProduct_main_id(String product_main_id) {
        this.product_main_id = product_main_id;
    }

    public String getImage() {
        return image;
    }

    public void setImage(String image) {
        this.image = image;
    }

    public boolean isIs_gift() {
        return is_gift;
    }

    public void setIs_gift(boolean is_gift) {
        this.is_gift = is_gift;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getAttribute_text() {
        return attribute_text;
    }

    public void setAttribute_text(String attribute_text) {
        this.attribute_text = attribute_text;
    }

    public String getPrice() {
        return price;
    }

    public void setPrice(String price) {
        this.price = price;
    }

    public String getStock() {
        return TextUtils.isEmpty(stock)?"1":stock;
    }

    public void setStock(String stock) {
        this.stock = stock;
    }

    public String getBuy_qty() {
        return TextUtils.isEmpty(buy_qty)?"1":buy_qty;
    }

    public void setBuy_qty(String buy_qty) {
        this.buy_qty = buy_qty;
    }
}
